package com.hunttown.mes.rpc.domain.enums;

/**
 * created by wangjunfu on 2017-07-27
 */
public enum ErrorCode {
    NULL_OBJ("BOLT000001", "对象为空"),
    CONVERT_ERROR("BOLT000002", "转换失败");

    private String value;
    private String info;

    ErrorCode(String value, String info) {
        this.setValue(value);
        this.setInfo(info);
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "[" + this.value + "]" + this.info;
    }
}
